package com.ruoyi.member.service.impl;

import com.ruoyi.member.domain.BmWarehouse;
import com.ruoyi.member.domain.Member;
import com.ruoyi.member.mapper.SupplierMemberMapper;
import com.ruoyi.member.service.ISupplierMemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author huang
 * @Date 2023/8/21 16:35
 * @PackageName: com.ruoyi.member.service.impl
 * @ClassName: SupplierMemberService
 * @Description:
 * @Version 1.0
 */
@Service
public class SupplierMemberService implements ISupplierMemberService {

    @Autowired
    private SupplierMemberMapper supplierMemberMapper;


    @Override
    public BmWarehouse getWarehouse(int id) {
        return supplierMemberMapper.getWarehouse(id);
    }

    @Override
    public List<Member> getConnectMember(int id) {
        return supplierMemberMapper.getConnectMember(id);
    }

    @Override
    public List<Member> getNotConnectMember(int id) {
        return supplierMemberMapper.getNotConnectMember(id);
    }

    @Override
    public int addMember(Map map) {
        return supplierMemberMapper.addMember(map);
    }
}
